#ifndef MEDIANFILTER_H
#define MEDIANFILTER_H

#include "filter.h"

class MedianFilter : public Filter
{
    Q_OBJECT

public:
    MedianFilter(int size);

    QImage doFiltering(const QImage &image);

private:
    int median(QList<int> list);
};

#endif
